#include<stdio.h>
int main() 
{
	int x,y;
	scanf("%d",&x);
	if(x<=-10)
	y=4*x-3;
	else if(x>-10&&x<=0)
	y=x;
	else if(x>0&&x<=10)
	y=x+3;
	else if(x>10)
	y=2*x-1;
	printf("y=%d",y);
	return 0;
	
}
